package com.zjsd.sqeybusiness.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zjsd.sqeybusiness.mapper.AchieveoldMapper;
import com.zjsd.sqeybusiness.domain.Achieveold;
import com.zjsd.sqeybusiness.service.IAchieveoldService;

/**
 * 钉钉报的业绩
Service业务层处理
 * 
 * @author Zheng
 * @date 2024-01-04
 */
@Service
public class AchieveoldServiceImpl implements IAchieveoldService 
{
    @Autowired
    private AchieveoldMapper achieveoldMapper;

    /**
     * 查询钉钉报的业绩

     * 
     * @param id 钉钉报的业绩
ID
     * @return 钉钉报的业绩

     */
    @Override
    public Achieveold selectAchieveoldById(Long id)
    {
        return achieveoldMapper.selectAchieveoldById(id);
    }

    /**
     * 查询钉钉报的业绩
列表
     * 
     * @param achieveold 钉钉报的业绩

     * @return 钉钉报的业绩

     */
    @Override
    public List<Achieveold> selectAchieveoldList(Achieveold achieveold)
    {
        return achieveoldMapper.selectAchieveoldList(achieveold);
    }

    /**
     * 新增钉钉报的业绩

     * 
     * @param achieveold 钉钉报的业绩

     * @return 结果
     */
    @Override
    public int insertAchieveold(Achieveold achieveold)
    {
        return achieveoldMapper.insertAchieveold(achieveold);
    }

    /**
     * 修改钉钉报的业绩

     * 
     * @param achieveold 钉钉报的业绩

     * @return 结果
     */
    @Override
    public int updateAchieveold(Achieveold achieveold)
    {
        return achieveoldMapper.updateAchieveold(achieveold);
    }

    /**
     * 批量删除钉钉报的业绩

     * 
     * @param ids 需要删除的钉钉报的业绩
ID
     * @return 结果
     */
    @Override
    public int deleteAchieveoldByIds(Long[] ids)
    {
        return achieveoldMapper.deleteAchieveoldByIds(ids);
    }

    /**
     * 删除钉钉报的业绩
信息
     * 
     * @param id 钉钉报的业绩
ID
     * @return 结果
     */
    @Override
    public int deleteAchieveoldById(Long id)
    {
        return achieveoldMapper.deleteAchieveoldById(id);
    }
}
